﻿using System;
using Microsoft.Xna.Framework;

namespace Terraria.ID
{
	// Token: 0x02000358 RID: 856
	public static class Colors
	{
		// Token: 0x17000221 RID: 545
		// (get) Token: 0x06001F9E RID: 8094 RVA: 0x00452278 File Offset: 0x00450478
		public static Color CurrentLiquidColor
		{
			get
			{
				Color color = Color.Transparent;
				bool flag = true;
				for (int i = 0; i < 11; i++)
				{
					if (Main.liquidAlpha[i] > 0f)
					{
						if (flag)
						{
							flag = false;
							color = Colors._liquidColors[i];
						}
						else
						{
							color = Color.Lerp(color, Colors._liquidColors[i], Main.liquidAlpha[i]);
						}
					}
				}
				return color;
			}
		}

		// Token: 0x06001F9F RID: 8095 RVA: 0x00016381 File Offset: 0x00014581
		public static Color AlphaDarken(Color input)
		{
			return input * ((float)Main.mouseTextColor / 255f);
		}

		// Token: 0x04001DF6 RID: 7670
		public static readonly Color RarityAmber = new Color(255, 175, 0);

		// Token: 0x04001DF7 RID: 7671
		public static readonly Color RarityTrash = new Color(130, 130, 130);

		// Token: 0x04001DF8 RID: 7672
		public static readonly Color RarityNormal = Color.White;

		// Token: 0x04001DF9 RID: 7673
		public static readonly Color RarityBlue = new Color(150, 150, 255);

		// Token: 0x04001DFA RID: 7674
		public static readonly Color RarityGreen = new Color(150, 255, 150);

		// Token: 0x04001DFB RID: 7675
		public static readonly Color RarityOrange = new Color(255, 200, 150);

		// Token: 0x04001DFC RID: 7676
		public static readonly Color RarityRed = new Color(255, 150, 150);

		// Token: 0x04001DFD RID: 7677
		public static readonly Color RarityPink = new Color(255, 150, 255);

		// Token: 0x04001DFE RID: 7678
		public static readonly Color RarityPurple = new Color(210, 160, 255);

		// Token: 0x04001DFF RID: 7679
		public static readonly Color RarityLime = new Color(150, 255, 10);

		// Token: 0x04001E00 RID: 7680
		public static readonly Color RarityYellow = new Color(255, 255, 10);

		// Token: 0x04001E01 RID: 7681
		public static readonly Color RarityCyan = new Color(5, 200, 255);

		// Token: 0x04001E02 RID: 7682
		public static readonly Color CoinPlatinum = new Color(220, 220, 198);

		// Token: 0x04001E03 RID: 7683
		public static readonly Color CoinGold = new Color(224, 201, 92);

		// Token: 0x04001E04 RID: 7684
		public static readonly Color CoinSilver = new Color(181, 192, 193);

		// Token: 0x04001E05 RID: 7685
		public static readonly Color CoinCopper = new Color(246, 138, 96);

		// Token: 0x04001E06 RID: 7686
		public static readonly Color[] _waterfallColors = new Color[]
		{
			new Color(9, 61, 191),
			new Color(253, 32, 3),
			new Color(143, 143, 143),
			new Color(59, 29, 131),
			new Color(7, 145, 142),
			new Color(171, 11, 209),
			new Color(9, 137, 191),
			new Color(168, 106, 32),
			new Color(36, 60, 148),
			new Color(65, 59, 101),
			new Color(200, 0, 0),
			default(Color),
			default(Color),
			new Color(177, 54, 79),
			new Color(255, 156, 12),
			new Color(91, 34, 104),
			new Color(102, 104, 34),
			new Color(34, 43, 104),
			new Color(34, 104, 38),
			new Color(104, 34, 34),
			new Color(76, 79, 102),
			new Color(104, 61, 34)
		};

		// Token: 0x04001E07 RID: 7687
		public static readonly Color[] _liquidColors = new Color[]
		{
			new Color(9, 61, 191),
			new Color(253, 32, 3),
			new Color(59, 29, 131),
			new Color(7, 145, 142),
			new Color(171, 11, 209),
			new Color(9, 137, 191),
			new Color(168, 106, 32),
			new Color(36, 60, 148),
			new Color(65, 59, 101),
			new Color(200, 0, 0),
			new Color(177, 54, 79),
			new Color(255, 156, 12)
		};
	}
}
